home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Code Resources / ColourBlock CDEF / ColourBlock ReadMe < prev    next >
Encoding:
Text File  |  1994-01-26  |  1.4 KB  |  41 lines  |  [TEXT/R*ch]

  1. ColourBlock ReadMe
  2. ------------------
  3.  
  4. ColourBlock is a CDEF for retrieving a block of colour from the user. THINK C 6.0 source and a compiled
  5. version are included in this archive.
  6.  
  7.  
  8.     • CNTL resources which use this CDEF should use a proc ID of 14000. The resource ID of
  9.       the ColourBlock CDEF is 900 - there are no variation codes.
  10.   
  11.     • The colour is held in a data structure attached to each control, a handle to which is left
  12.       in the contrlData field of the control. Your app should read/set the value in this structure,
  13.       and call Draw1Control when it wants to update the on-screen value. See ColourBlock.h for
  14.       the format.
  15.  
  16.     • The CDEF *assumes* that Colour Quickdraw is present.
  17.  
  18.     • The CDEF will return inCheckBox when the control is selected.
  19.  
  20.     • The CDEF doesn't attempt to be sensible when it's placed on a display with a small colour
  21.       depth. Disable the control if it's not feasible to use it to  pick colours with. It also doesn't
  22.       attempt to dither the colour blocks.
  23.   
  24.     • The source code, and the CDEF, are freeware - you may use them, without notice, in
  25.       anything you write.
  26.  
  27.     • If you find any bugs, or have any comments, feel free to send me some email. This was
  28.       just done as a quick hack, so there may well be some.
  29.  
  30.     • You can reach me by email as grantd@dcs.gla.ac.uk, and by post with:
  31.  
  32.         Dair Grant,
  33.         11 Garrioch Quadrant,
  34.         North Kelvinside,
  35.         Glasgow
  36.         G20 8RT
  37.  
  38.  
  39.  
  40. -dair
  41.